#pragma once

#include <QtCore/QtGlobal>
#include "GUIWidget/GUIWidgetBase.h"


namespace EventOper 
{
	class ParaWidgetInterfaceOperator;
}

namespace Ui 
{
	class GUIMonitorSamplingPointWidget;
}

namespace Interface 
{
	class FITKCDMonitorSamplingPointManager;
}


namespace GUI
{
	class MainWindow;
	class GUIWIDGETAPI GUIMonitorSamplingPointWidget : public GUIWidgetBase
	{
		Q_OBJECT
	public:
		GUIMonitorSamplingPointWidget(Interface::FITKCDMonitorSamplingPointManager* pManager, EventOper::ParaWidgetInterfaceOperator* oper, QWidget* parent = nullptr);
		~GUIMonitorSamplingPointWidget();

		void init();

    private slots:
		void on_pushButton_add_clicked();
		void on_pushButton_remove_clicked();
		void doubleSpinBoxValueChanged(double dVal);

    private:
		void setDataToWidget();

    private:
        EventOper::ParaWidgetInterfaceOperator* _oper = nullptr;
		Ui::GUIMonitorSamplingPointWidget* _ui = nullptr;

		Interface::FITKCDMonitorSamplingPointManager* _pManager;
	};
}